home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Environments / PowerFantasm™ 4.19a / Beginners guide / Beginners Mac Assembly - ed.srd / Beginners Mac Assembly - ed.srd.rsrc / PICT_20.png < prev    next >
Portable Network Graphic  |  1996-08-28  |  104KB  |  816x1056  |  8-bit (256 colors)
OCR: Neteathar ahegssplacement mus# dghiera Matin37A sembly Language Programming 23age Offsets be a pain, if the assembler calculate them for you move. .w total(pc),d0 *move the pirM held in total op oo You needed worry about the offset here. as Fantasm will calculate it for you and substitute the offset for total. This form of addressing uses two bytes 10J the offset, whereas an absolute address uses bytes: move fred(pc),d0 *this instruction is 4 bytes move. fred op* *this instruction is 6 bytes Note that normally on a Mac move. W fred,do would be illegal as all data has to be accessed as offsets. However Fantasm uses a special loader in the application creates to relocate any absolute long references. Working like this is no longer recommended in Fantasm there is really no need Program counte ...